#include "Merge.h"
#include <iostream>

int main()
{
    LinkList l1;
    LinkList l2;
    LinkList l3;
    LinkList l4;

    for (int i = 0; i < 5; i++)
    {
        l1.InsertTail(i + 2);
    }
    l1.show();
    for (int i = 1; i < 6; i++)
    {
        l2.InsertTail(i + 2);
    }
    l2.show();

    for (int i = 0; i < 6; i++)
    {
        l3.InsertTail(i);
    }
    l3.show();

    LinkList *linklists[3] = {&l1, &l2, &l3};

    l4 = l4.Merge(*linklists, 3);
    l4.show();

    return 0;
}